package com.gitee.aurora.controller;

import com.gitee.aurora.entity.TabAjAqBaqsyqkdjb;
import com.gitee.aurora.service.DataCheckService;
import com.gitee.aurora.utils.ResultVO;
import com.gitee.aurora.vo.DataCheckVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * author: jiangfuxiao
 * Date:2022/9/2 9:28
 */
@Controller
@ResponseBody
@RequestMapping("dataCheck")
public class DataCheckController {


    @Resource(name = "dataCheckServiceImpl")
    private DataCheckService dataCheckService;


    @PostMapping("/checkBaq")
    public ResultVO checkBaq(DataCheckVo checkVo) {
        return  dataCheckService.checkBaq(checkVo);
    }


    @PostMapping("/insertData")
    public ResultVO insertData(@RequestBody List list, DataCheckVo checkVo) {
        return  dataCheckService.insertData(list,checkVo);
    }
}
